package com.woniuxy.test_exception;

import java.io.FileReader;
import java.io.IOException;

/**
 * description: Test03 <br>
 * date: 2022/2/2 5:29 下午 <br>
 * author: shesaifei <br>
 * version: 1.0 <br>
 */
public class Test03 {
    public static void main(String[] args) {
        try {
            readMyFile();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }

    public static void readMyFile() throws IOException {
        FileReader reader = null;
        reader = new FileReader(
                "/Users/shesaifei/IdeaProjects/NewIdeaSpringAll/TotalReview/TheFirstStage/gg.txt");
        char c1 = (char) reader.read();
        if (reader != null) {
            reader.close();
        }
    }
}
